package com.shijie.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.shijie.core.Mapper;
import com.shijie.domain.entity.Users;

/*
 *  @author: smart boy
 *  @date: 2018-08-06
 */
public interface  UsersMapper extends Mapper<Users> {

    List<Map<String, Object>> queryStatisticByDays(@Param("startAt") Date startAt, @Param("endAt") Date endAt);

    List<Map<String, Object>> queryStatisticByMonths(@Param("startAt") Date startAt, @Param("endAt") Date endAt);

    Users detailForUser(@Param("userId") Integer userId);
    
    List<Users> selectUsersByAll(Users user);
}
